import React,{Component} from 'react';
import cookie from 'react-cookies';
import {Redirect} from 'react-router-dom';
import './index.css';
class Cinemater extends Component {
    render(){
    	const userId = cookie.load('userId');
    	if(userId){
    		return (
            <div className='div1'>
            	用户中心
           	</div>
           	
        	)
    	}else{
    		return <Redirect to = '/login' />
    	}
    }
}
export default Cinemater;